package FlyGame;

import java.awt.*;

//提示文字类
public class Word {

    private String content;
    private Color color;
    private int locateX;
    private int locateY;
    private int size;

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getLocateX() {
        return locateX;
    }

    public void setLocateX(int locateX) {
        this.locateX = locateX;
    }

    public int getLocateY() {
        return locateY;
    }

    public void setLocateY(int locateY) {
        this.locateY = locateY;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public void paintWord(Graphics g) {
        g.setColor(this.color);
        g.setFont(new Font("微软雅黑", Font.BOLD, this.size));
        g.drawString(this.content, this.locateX, this.locateY);
    }


}
